package cn.stylefeng.guns.modular.household.pojo;

import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 权属户添加/修改参数类
 *
 * @author lichenhui
 * @date 2024/03/20
 */
@Data
public class HouseholdAddRequest extends BaseRequest {

    @NotNull(message = "权属户ID不能为空", groups = {edit.class})
    private Long householdId;

    @NotNull(message = "户主姓名不能为空", groups = {add.class, edit.class})
    private String householdOwnerName;

    @NotNull(message = "户编号不能为空", groups = {add.class, edit.class})
    private String householdNo;

    @NotNull(message = "户所在地不能为空", groups = {add.class, edit.class})
    private String householdAddress;

    private List<HouseholdMemberRequest> members;

    private List<HousingInfoRequest> housingInfos;

}
